﻿<UserControl x:Class="CncConvProg.View.Lavorazioni.OperazioneScreen.Common.RotateWorkView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Resources="clr-namespace:MecPrev.Resources;assembly=MecPrev.Resources" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
        <GroupBox>
            <GroupBox.Header>
                <ToggleButton Content="{x:Static Resources:EditWorkRes.RotationAb}" IsChecked="{Binding RotationAbilited}"/>
            </GroupBox.Header>
            <StackPanel IsEnabled="{Binding Path=RotationAbilited}">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{x:Static Resources:EditWorkRes.CenterRotationX}" MinWidth="150" />
                    <TextBox Text="{Binding Path=CenterRotationX}" MinWidth="100" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{x:Static Resources:EditWorkRes.CenterRotationY}" MinWidth="150" />
                    <TextBox Text="{Binding Path=CenterRotationY}" MinWidth="100" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{x:Static Resources:EditWorkRes.FirstAngle}" MinWidth="150" />
                    <TextBox Text="{Binding Path=FirstAngle}" MinWidth="100" />
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="{x:Static Resources:EditWorkRes.InstanceCount}" MinWidth="150" />
                    <TextBox Text="{Binding Path=NumberInstance}" MinWidth="100" />
                </StackPanel>
            </StackPanel>
        </GroupBox>
    </Grid>
</UserControl>
